package redis.datatype.impl;

import java.util.Set;

import redis.clients.jedis.ShardedJedis;
import redis.datatype.ISet;

public class ISetImpl implements ISet {

	public Set getMember(ShardedJedis jedis, String key) {
		return jedis.smembers(key);
	}

	public long set(ShardedJedis jedis, String key, String value) {
		return jedis.sadd(key, value);
	}

	public long incr(ShardedJedis jedis, String key) {
		return jedis.incr(key);
	}

	public long incr(ShardedJedis jedis, String key, int num) {
		return jedis.incrBy(key, num);
	}

	public String getValue(ShardedJedis jedis, String key) {
		return jedis.get(key);
	}

}
